Skip to content

Add SameSite=strict to cookies#2

Open
C-Kan-42 wants to merge 2 commits intonanotube:masterfrom
C-Kan-42:bug-secure-cookies
Open

Add SameSite=strict to cookies#2
C-Kan-42 wants to merge 2 commits intonanotube:masterfrom
C-Kan-42:bug-secure-cookies

Conversation

@C-Kan-42
Copy link

@C-Kan-42 C-Kan-42 commented Aug 4, 2021

Addresses error message seen in JavaScript console on Firefox. It says:

Cookie “generated_toc_display” will be soon rejected because it has the “SameSite” attribute set to “None” or an invalid value, without the “secure” attribute. To know more about the “SameSite“ attribute, read https://developer.mozilla.org/docs/Web/HTTP/Headers/Set-Cookie/SameSite | generated_toc.js:270:4

Fix: Add property SameSite=strict; Secure to createCookie function.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant